package com.jumi.microservice.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jumi.microservice.domain.ArticleClass;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface ArticleClassMapper extends BaseMapper<ArticleClass> {
    /**
     * 删除接口
     */
    @Update("<script>" +
            "UPDATE auth_article_class " +
            "SET is_del=1," +
            "modifier=#{modifier} " +
            "WHERE acid in " +
                "<foreach collection='idArr' item='item' index='index' open='(' separator=',' close=')' >"+
                    "#{item}" +
                "</foreach>"+
            "</script>")
    void delete(@Param("idArr") List idArr, @Param("modifier") String modifier);
}
